/**
 ********************************************************************
 * @author roocket
 * @file    main.c
 * @version V0.0.0
 * @date    2024/3/22
 * @brief   This file is to indicate main functions. 
 * @attention Code file rules:
 * rule: file encoding use UTF8;
 * rule: max line length 120 characters;
 * rule: line separator \r\n;
 * rule: use clion auto code format tool.
 */
#include "user.h"
#include <stdio.h>

int main(int argc, char **argv)
{
    int ret = -1;

    struct user_video_structure user_vs =
    {
        .pix_width = 640,
        .pix_height = 480,
        .pix_fmt = V4L2_PIX_FMT_MJPEG,
        .video_device = "/dev/video20",
        .directory = "/tmp",
        .bulks_of_videos = 300
    };

    ret = user_video_entry_get_bulks(&user_vs);
    if (-1 == ret)
        return -1;
    printf("get video data\n");

    return 0;
}
